package com.menusifu.onlineorder.mongo.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @Value("${spring.application.name}")
    private String projectName;

    @RequestMapping("/mongo")
    public String mongo(){
        return "hello  "+projectName;
    }

}
